package com.hc.service.impl;

import com.hc.query.RoleCondition;
import org.springframework.stereotype.Service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hc.mapper.RoleMapper;
import com.hc.domain.Role;
import com.hc.service.RoleService;

import javax.annotation.Resource;

@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    @Resource
    private RoleMapper roleMapper ;


    @Override
    public int updateBatchSelective(List<Role> list) {
        return baseMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<Role> list) {
        return baseMapper.batchInsert(list);
    }

    @Override
    public List<Role> queryByCondition(RoleCondition condition) {
        return roleMapper.queryByCondition(condition);
    }
}

